hive sql 语句正确执行顺序 您所在的位置:网站首页 limit和order by执行顺序 hive sql 语句正确执行顺序

hive sql 语句正确执行顺序

2023-10-16 20:34| 来源: 网络整理| 查看: 265

Map Operator Tree: TableScan             alias: 表名   -- 相当于 from ...

Filter Operator               predicate: where中的字段  -- 过滤where字段的条件

Select Operator                 expressions: select 中的字段 + 类型type    -- select                 outputColumnNames: 输出的字段  -- select Group By Operator                   aggregations: 聚合函数 sum(age)/count(age)等                    keys: group by 中的字段 + 类型type  Reduce Output Operator                  map端本地的reduce

Reduce Operator Tree: Group By Operator           aggregations: sum(VALUE._col0)   --reduce 聚合函数 对虚拟列           keys: KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: string)            mode: mergepartial               outputColumnNames: _col0, _col1, _col2, _col3 --为临时结果字段按规则起的临时字段名 Select Operator             expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: bigint) --select             outputColumnNames: _col0, _col1, _col2, _col3 -- 输出虚拟列(为临时结果字段按规则起的临时字段名)              File Output Operator               compressed: false



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有